<?php

namespace common\models\datas;

use Yii;

/**
 * This is the model class for table "{{%cards_issuerinfor}}".
 *
 * @property integer $id
 * @property integer $site_id
 * @property integer $user_id
 * @property string $name
 * @property string $contact
 * @property integer $mobile
 * @property integer $response_man_id
 * @property string $username
 * @property string $password
 * @property integer $review
 * @property integer $level
 * @property integer $created_at
 * @property integer $updated_at
 * @property integer $is_delete
 */
class CardsIssuerinfor extends \common\components\bases\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%cards_issuerinfor}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['site_id', 'user_id', 'response_man_id', 'review', 'level', 'created_at', 'updated_at', 'is_delete','parent_id'], 'integer'],
            [['name', 'contact','mobile'], 'string', 'max' => 255],
            [['username'], 'string', 'max' => 50],
            [['password'], 'string', 'max' => 60],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('common', '编号'),
            'site_id' => Yii::t('common', '分店id'),
            'user_id' => Yii::t('common', '添加人id'),
            'parent_id'=>Yii::t('common', '父类id'),
            'name' => Yii::t('common', '名字'),
            'contact' => Yii::t('common', '联系人'),
            'mobile' => Yii::t('common', '联系人手机号'),
            'response_man_id' => Yii::t('common', '负责人id'),
            'username' => Yii::t('common', '用户名'),
            'password' => Yii::t('common', '密码'),
            'review' => Yii::t('common', '是否有审批权限 0：默认没有 1：有'),
            'level' => Yii::t('common', '发卡人级别 0：默认一级发卡人 1：二级发卡人'),
            'created_at' => Yii::t('common', '创建时间'),
            'updated_at' => Yii::t('common', '更新时间'),
            'is_delete' => Yii::t('common', '是否删除 0:默认未删除 1：删除'),
        ];
    }
}
